//系统设置
import http from '../http';
//获取权限列表
export function systemSettingsSysMenus (params) {
    return http({
        url: "/frame/roles/sysMenus.do",
        method: "post",
        params:params
    })
}

//角色设置 新增保存
export function systemSettingsSave(data) {
    return http({
        url: '/frame/roles/save.do',
        method: "post",
        data: data
    })
}

//角色设置 获取列表
export function systemSettingsList(params) {
    return http({
        url: `/frame/roles/list.do`,
        method: "post",
        params:params
    })
}

//角色设置 查看单条信息
export function systemSettingsQuery(params) {
    return http({
        url: '/frame/roles/getRole.do',
        method: "post",
        params: params
    })
}

//角色设置 删除
export function systemSettingsDel(params) {
    return http({
        url: `/frame/roles/delete.do`,
        method: "post",
        params: params
    })
}

//角色下拉
export function roleSetUpSelect(params) {
    return http({
        url: 'frame/roles/roleNames.do',
        method: "post",
        params: params
    })
}


//账号添加
export function roleSetUpAdd(data) {
    return http({
        url: '/frame/user/save.do',
        method: "post",
        data: data
    })
}


//账号设置 获取列表
export function roleSetUpList(params) {
    return http({
        url: `/frame/user/list.do`,
        method: "post",
        params:params
    })
}

//账号设置 查看一条 用id查
export function roleSetUpQuery(params) {
    return http({
        url: '/frame/user/getUserById.do',
        method: "post",
        params: params
    })
}

//账号设置 删除
export function roleSetUpDel(params) {
    return http({
        url: '/frame/user/delete.do',
        method: "post",
        params: params
    })
}

//账号设置 重置密码 和
export function roleSetUpResetPass(params) {
    return http({
        url: '/frame/user/updatePassword.do',
        method: "post",
        params: params
    })
}

//系统日志 类型 下拉
export function systemLogSelect(params) {
    return http({
        url: '/frame/sys_log/logType.do',
        method: "post",
        params: params
    })
}

//系统日志 列表
export function systemLogList(params) {
    return http({
        url: '/frame/sys_log/list.do',
        method: "post",
        params: params
    })
}
